﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs" Inherits="TCMSystem._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>系统登陆</title>
    <script type="text/javascript">

        // 本页面一定是顶层窗口，不会嵌在IFrame中
        if (top.window != window) {
            top.window.location.href = "./default.aspx";
        }
        
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server"></ext:PageManager>
    <ext:Window ID="Window1" runat="server" IsModal="true" Popup="true" WindowPosition="GoldenSection"
        Icon="Key" Title="TCMSystem系统登陆" EnableMaximize="false" EnableMinimize="false"
        EnableClose="false" EnableResize="false" Layout="HBox" BoxConfigAlign="Stretch"
        BoxConfigPosition="Start" Width="450px" Height="200px">
        <Items>
            <ext:Image ID="imageLogin" ImageUrl="~/res/images/login/login_1.png" runat="server" ImageWidth="150px"
                Width="160px">
            </ext:Image>
            <ext:SimpleForm ID="SimpleForm1" LabelAlign="Top" BoxFlex="1" runat="server" LabelWidth="45px"
                BodyPadding="20px 10px" EnableBackgroundColor="true" ShowBorder="false" ShowHeader="false">
                <Items>
                    <ext:TextBox ID="tbxUserName" FocusOnPageLoad="true" runat="server" Label="帐号" Required="true"
                        ShowRedStar="true" Text="">
                    </ext:TextBox>
                    <ext:TextBox ID="tbxPassword" TextMode="Password" runat="server" Required="true"
                        ShowRedStar="true" Label="密码" Text="">
                    </ext:TextBox>
                    <ext:Button ID="btnSubmit" Icon="LockOpen" Type="Submit" runat="server" ValidateForms="SimpleForm1"
                        OnClick="btnSubmit_Click" Text="登陆">
                    </ext:Button>
                </Items>
            </ext:SimpleForm>
        </Items>
    </ext:Window>
    </form>
</body>
</html>
